﻿<Application
    x:Class="JumpstartApp.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    mc:Ignorable="d"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:JumpstartApp" >

    <Application.Resources>
        <ResourceDictionary>
            
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Styles/StandardStyles.xaml"/>
                <ResourceDictionary Source="Styles/CustomStyles.Green.xaml"/>
            </ResourceDictionary.MergedDictionaries>

            <DataTemplate x:Name="AdTemplate">
                <Grid Background="Black">
                    <Image Source="ms-appx:///Assets/Advert.png" Width="{Binding ColSpan}" Height="{Binding RowSpan}" Stretch="Uniform" />
                </Grid>
            </DataTemplate>

            <DataTemplate x:Name="GroupStyleHeaderTemplate">
                <TextBlock Text="{Binding Title}" Style="{StaticResource GroupHeaderTextStyle}" Margin="5" />
            </DataTemplate>

            <ItemsPanelTemplate x:Name="GroupStylePanelTemplate">
                <VariableSizedWrapGrid Margin="0,0,80,0" ItemHeight="1" ItemWidth="1" />
            </ItemsPanelTemplate>

            <!-- Styles for pinning tiles AppBarButtons -->

            <Style x:Key="PinAppBarButtonStyle" TargetType="Button" BasedOn="{StaticResource AppBarButtonStyle}">
                <Setter Property="AutomationProperties.AutomationId" Value="PinAppBarButton"/>
                <Setter Property="AutomationProperties.Name" Value="Pin to Start (dev)"/>
                <Setter Property="Content" Value="&#xE141;"/>
            </Style>
            <Style x:Key="UnpinAppBarButtonStyle" TargetType="Button" BasedOn="{StaticResource AppBarButtonStyle}">
                <Setter Property="AutomationProperties.AutomationId" Value="UnpinAppBarButton"/>
                <Setter Property="AutomationProperties.Name" Value="Unpin from Start (dev)"/>
                <Setter Property="Content" Value="&#xE196;"/>
            </Style>

        </ResourceDictionary>
    </Application.Resources>
</Application>
